package com.cdxy.model.info;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author: tangy
 * @Date: 2020/4/7 16:39
 */
@Data
@ApiModel
public class OrderInfo implements Serializable {

    private static final long serialVersionUID = 2610225383924751274L;

    @ApiModelProperty(value = "订单id")
    @NotNull(message = "创建的订单id不能为空")
    private Integer orderId;

    @ApiModelProperty(value = "数量")
    @NotNull(message = "数量不能为空")
    private Integer num = 0;
}
